<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tlds/extremecomponents.tld" prefix="ec"%>
<%@page import="jmc.ui.front.form.SendTravelsForm"%>


 


<div class="main">



<div class="space"></div>
<fieldset class="defaultFieldset" ><legend>Resumen</legend>

<html:form action="/sendTravels.do?method=loginWs" styleId="loginVdpForm">
	<div style="width:10%; float:right;">
		<html:link href="#"  style="margin: 0px;" onclick="submitForm('loginVdpForm');"><span>Administrar WS</span></html:link>
	</div>
</html:form>

<html:form action="/sendTravels.do?method=preparedSelectDate" styleId="listoForm">
	<div style="width:10%; float:right;">
		<html:link href="#"  style="margin: 0px;" onclick="submitForm('listoForm');"><span>Cambiar Fecha</span></html:link>
	</div>
</html:form>


<div class="subTitulo">
	Cliente: <bean:write name="sendTravelsForm" property="usuario.nombreCliente" /> ---
	Fecha Seleccionada: <bean:write name="sendTravelsForm" property="usuario.fechaInventario" />
</div>
<br>

<div class="separator"></div>
<table >
	<tr>
	<td colspan="2">
	
		<fieldset class="defaultFieldset" ><legend>Eventos de la Fecha</legend>

		
		<table>
		<tr align="left">
		<td align="left">
		<label class="label_128 field" style="white-space:nowrap;">Remitos Recibidos:</label>
		</td>
		<td> 
		<label class="label_128 data" style="text-align: left;"><bean:write	name="sendTravelsForm" property="totalesVDP.estado1" /></label>
		</td>
		<td>
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(1);" border="0" ></img>
		</a>
		</td>
		
		
		</tr>
		<tr align="left">
		<td align="left">
		<label class="label_128 field" style="white-space:nowrap;">Unidades Cargadas:</label> 
		</td>
		<td>
		
		<label
			class="label_128 data" style="text-align: left;"><bean:write
			name="sendTravelsForm" property="totalesVDP.estado2" /></label>
		</td>
		<td>
		
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(2);" border="0" ></img>
		</a>

		
		</td>
		</tr>
		<tr align="left">
		<td align="left">
		<label class="label_128 field" style="white-space:nowrap;" >Unidades Entregadas:</label>
				</td>
		<td>
		
		 <label
			class="label_128 data" style="text-align: left;"><bean:write
			name="sendTravelsForm" property="totalesVDP.estado3" /></label>
				</td>
		<td>
		
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(3);" border="0" ></img>
		</a>
		</td>
		</tr>
		<tr align="left">
		<td align="left">
		<label class="label_128 field" style="white-space:nowrap;">Total eventos:</label> 
				</td>
		<td>
		
		<label
			class="label_128 data" style="text-align: left;"><bean:write
			name="sendTravelsForm" property="totalesVDP.totalEstado" /></label>
				</td>
		<td>
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(4);" border="0" ></img>
		</a>
		</td>
		</tr>
		</table>
		</fieldset>
		</td>
		<td>

		<fieldset class="defaultFieldset"><legend>Pendientes a la Fecha</legend>

		<table>
		<tr align="left">
		<td align="left">
		<label class="label_128 field">Aptas:</label> 
		</td>
		<td>

		<label class="label_100 data" style="text-align: left;"><bean:write	name="sendTravelsForm" property="totalesVDP.pendientes" /></label>
		</td>
		<td>

		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(5);" border="0" ></img>
		</a>

		
		</td>
		</tr>
		<tr align="left">
		<td align="left">
		<label class="label_128 field">No Aptas:</label>
				</td>
		<td>
		
		 <label
			class="label_128 data" style="text-align: left;"><bean:write
			name="sendTravelsForm" property="totalesVDP.retenidos" /></label>
				</td>
		<td>
		
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(6);" border="0" ></img>
		</a>


		</td>
		</tr>
		<tr align="left">
		<td align="left">
		<label class="label_128 field">Total Pendientes:</label> 
				</td>
		<td>
		
		<label
			class="label_128 data" style="text-align: left;"><bean:write
			name="sendTravelsForm" property="totalesVDP.totalRetePend" /></label>
				</td>
		<td>
		
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(7);" border="0" ></img>
		</a>


		</td>
		</tr>
		</table>

		</fieldset>
		</td>
		<td>

		<fieldset class="defaultFieldset"><legend>Sin Entrega, a la Fecha</legend>

		<table>
		<tr align="left">
		<td align="left">
		<label class="label_256 field">(sin Av.Rec.Telef. ni Conforme)</label> 
		</td>
		</tr>
		<tr align="left">
		<td align="left">
		<label class="label_256 field">Total:</label>
				</td>
		<td>
		
		 <label
			class="label_128 data" style="text-align: left;"><bean:write
			name="sendTravelsForm" property="totalesVDP.totalSEntrega" /></label>
				</td>
		<td>
		
		<a href="#">
	        <img src="images/general/view.png" alt="Ver Detalle" title="Ver Detalle" onclick="getDetalle(8);" border="0" ></img>
		</a>


		</td>
		</tr>
		</table>

		</fieldset>
		</td>

	</tr>
</table>


</fieldset>
<div class="space"></div>



</div>


<html:form action="sendTravels.do?method=getDetalle" styleId="verDetalleForm">
	<html:hidden property="listado" styleId="idListado"/>
</html:form>


<script type="text/javascript">
	function getDetalle(idListado){
		document.getElementById("idListado").value=idListado;
		document.getElementById("verDetalleForm").submit();
	}
	function submitForm(formId) { 
		document.getElementById(formId).submit();
	}

</script>
